<?php

namespace App\Models;


class MemberRequest extends Model
{
    use ModelTrait;

    protected $table = 'member_request';

    /**
     * The attributes that are mass assignable.
     *
     * @var array<int, string>
     */
    protected $fillable = [
        'id',
        'member_id',
        'age_min_request',
        'age_max_request',
        'city_request',
        'height_min_request',
        'height_max_request',
        'weight_min_request',
        'weight_max_request',
        'body_size_request',
        'education_background_request',
        'annual_income_request',
        'asset_house_request',
        'asset_car_request',
        'marital_status_request',
        'child_status_request',
        'job_request',
        'job_request',
        'about_family_request',
        'brother_sister_request',
        'want_child_request',
        'want_marry_request',
        'about_smoke_request',
        'about_drink_request',
        'created_at',
        'updated_at',
    ];


    protected $columns = [
        'id',
        'member_id',
        'age_min_request',
        'age_max_request',
        'city_request',
        'height_min_request',
        'height_max_request',
        'weight_min_request',
        'weight_max_request',
        'body_size_request',
        'education_background_request',
        'annual_income_request',
        'asset_house_request',
        'asset_car_request',
        'marital_status_request',
        'child_status_request',
        'job_request',
        'about_family_request',
        'brother_sister_request',
        'want_child_request',
        'want_marry_request',
        'about_smoke_request',
        'about_drink_request',
        'created_at',
        'updated_at',
    ];


    public function member()
    {
        return $this->belongsTo(Member::class,'member_id','id');
    }

}
